<?php include TMPL_PATH.'public/header.phtml';?>
<div class="subnav">
    <div class="content-menu ib-a blue line-x">
    	<div style="float:left;margin-right:50px;">
        <a href='javascript:;'><em>产品列表</em></a><span>|</span>
        <a  href='javascript:;' class="on" ><em>回收站列表</em></a>
      </div>
    	<div style="color:#000;">
    	</div>
    </div>
</div>
<div class="bk"></div>
<form action="__SELF__" method="post" name="myform"  id="myform">
<div class="pad_10">
<div class="table-list">
    <table width="100%" cellspacing="0" >
        <thead>
            <tr>
            <th width="30" align="center"><input type="checkbox" value="" id="check_box" onclick="selectall('pids[]');"></th>
           <!--<th width="30">排序</th>-->
            <th width="100">编号</th>
			<th width="80">面料编号</th>
			<th width="80">产品图片</th>
            <th align='left'>产品名称</th>
            <th align='center' width="50">销售价</th>
            <th align='center' width="50">市场价</th>
						<th align='center' width="80">管理操作</th>
            </tr>
        </thead>
    <tbody>
    <?php 
   	if(isset($productList) && $productList):
   		foreach ($productList as $v):
		$suppliers_name=D('suppliers')->where('suppliers_id='.$v['suppliers_id'])->getField("suppliers_name");
   ?>
			<tr>
				<td align="center"><input type="checkbox" name="pids[]" value="<?php echo $v['id'];?>"></td>
					<!--<td align='center'><input id="listorder-<?php echo $v['id']?>" name='listorders[<?php echo $v['id']?>]' type='text' size='3' title="当光标离开输入框后修改排序" value='<?php echo $v['listorder']?>' onblur="javascript:setting_listorder(<?php echo $v['id']?>);" class='input-text-c'></td>-->
					<td align='left'><?php echo $v['sn']?></td>
					<td align='center'><?php echo $suppliers_name;?></td>
                    <td align='center'><img src="<?php echo $v['small_img']?>"></td>
					<td><?php echo $v['name']?></td>
					<td align='center'><?php echo $v['sell_price']?></td>
					<td align='center'><?php echo $v['market_price']?></td>
					<td align='center'> 
					<a href="javascript:confirmurl('<?php echo U('product/product_trach_back', 'pid='.$v['id']);?>','确认要还原『<?php echo $v['name']?>』 吗？\n 还原后请检查产品相关信息后再上架！')">还原</a> | 
					<a href="javascript:confirmurl('<?php echo U('product/product_trach_delete', 'pid='.$v['id']);?>','确认要删除 『<?php echo $v['name']?>』 吗？')">删除</a>
					</td>
				</tr>
	<?php 
		endforeach;
		endif;
	?>
   </tbody>
    </table>
<div class="btn">
     <select name="type" id="selAction" onchange="changeAction()">
    <option value="">请选择...</option>
    <option value="back">还原</option>
    <option value="delete">删除</option>
				</select>
	<input type="submit" class="button" name="dosubmit" value="确定" />
	
	<div id="pages"><?php echo $pageShow;?></div>
	</div> 
</div>
</div>
</form>
</body>
</html>
